<?php

namespace app\model\store;

use think\Model;

class GoodsReply extends Model
{
    // 不要使用order
    public function saleOrder(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(Order::class, 'order_id');
    }

    public function goods(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(Goods::class, 'goods_id');
    }
}
